<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加权限</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">
</head>
<body>
    <!--编辑页-->
    <div class="layui-container">
        <form class="layui-form" action="{:url('admin/user/add')}" method="post">
  			<div class="layui-form-item">
  				<label class="layui-form-label">用户名称</label>
  				<div class="layui-input-block">
  					 <input class="layui-input" type="text" name="userName"  autocomplete="off" placeholder="请输入用户名称">
  				</div>
  			</div>
  			<div class="layui-form-item">
  				<label class="layui-form-label">用户角色</label>
  				<div class="layui-input-block">
	  				<select name="role" lay-verify="required" lay-search="">
				          <option value="">直接选择或搜索选择</option>
				          {volist name="roleList" id="item"}
				          <option value="{$item.id}">{$item.roleName}</option>
				          {/volist}
	        		</select>
        		</div>
  			</div>
  			<div class="layui-form-item">
  				<label class="layui-form-label">用户属性</label>
  				<div class="layui-input-block">
	  				<select name="userProperty" lay-verify="required">
				          <option value=""></option>
				          {volist name="userPropertyList" id="item"}
				          <option value="{$key}">{$item}</option>
				          {/volist}
	        		</select>
        		</div>
  			</div>
  			<div class="layui-form-item">
  				<label class="layui-form-label">所属单位</label>
  				<div class="layui-input-block">
	  				<select name="enterpriseId" lay-search="">
				          <option value="">直接选择或搜索选择</option>
				          {volist name="enterpriseList" id="item"}
				          <option value="{$item.id}">{$item.fullName}</option>
				          {/volist}
	        		</select>
        		</div>
  			</div>
  			<div class="layui-form-item">
  				<label class="layui-form-label">手机</label>
  				<div class="layui-input-block">
  					<input class="layui-input" type="text" name="mobile" autocomplete="off" placeholder="请输入手机号码">
  				</div>
  			</div>
  			<div class="layui-form-item">
  				<label class="layui-form-label">电话</label>
  				<div class="layui-input-block">
  					<input class="layui-input" type="text" name="tel" autocomplete="off" placeholder="请输入电话号码">
  				</div>
  			</div>
  			<div class="layui-form-item">
  				<label class="layui-form-label">邮箱</label>
  				<div class="layui-input-block">
  					<input class="layui-input" type="text" name="email" autocomplete="off" placeholder="请输入电子邮箱">
  				</div>
  			</div>
  			<div class="layui-form-item">
			    <label class="layui-form-label">有效性</label>
			    <div class="layui-input-block">
			      <input type="checkbox" checked="" name="validity" lay-skin="switch"  lay-text="有效|无效">
			    </div>
			</div>
			<div class="layui-form-item">
			    <div class="layui-input-block">
			      <button class="layui-btn btn-green" lay-submit="" lay-filter="save">保存</button>
			      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
			    </div>
		  	</div>
        </form>
    </div>
   
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/admin/user.js"></script>
       

</body>
</html>           

